# coding=UTF-8
import argparse
import sys

from os import path
print(path.dirname(__file__))


#
#
#
#
#

from .collects.update_flow import update_flow

PY = sys.version_info[0]
PY2 = PY == 2
PY3 = PY == 3
if PY2:
    print('Please upgrade to version 3.7 or above')
    exit(0)

parser = argparse.ArgumentParser(description='update flow through id')
parser.add_argument('action', type=str, help='action')
parser.add_argument('--id', type=int, help='flow id')

args = parser.parse_args()
print(sys.path)
#获得传入的参数
print(args)
if args.action == 'update':

    update_flow(args.id)